from urllib import parse,request

data = bytes(parse.urlencode({"world":"hello"}),encoding='utf-8') #采用url编码(中文在get请求中会乱码)
response = request.urlopen('http://httpbin.org/post', data=data,timeout=2000) #采用post请求,超时时间设置为2000s
print(response.read())